package com.example.word;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@SpringBootApplication
@MapperScan("com.example.word.mapper")
@EnableScheduling
public class WordDetectionApplication {

    public static void main(String[] args) {
        SpringApplication.run(WordDetectionApplication.class, args);
    }
    @Bean
    public ExecutorService executorService() {
        return Executors.newCachedThreadPool();
    }
}
